﻿using Dapper.Contrib.Extensions;

namespace Tauren.File.Entity.Model
{
    [Table("Files")]
    public class Files : EntityBase
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [Key]
        public virtual long AutoId { get; set; }
        /// <summary>
        /// 文件夹ID
        /// </summary>
        public virtual long FolderId { get; set; }

        /// <summary>
        /// 中文名
        /// </summary>
        public virtual string CNName { get; set; }
        /// <summary>
        /// 英文名
        /// </summary>
        public virtual string ENName { get; set; }
        /// <summary>
        /// 扩展名
        /// </summary>
        public virtual string Ext { get; set; }
        /// <summary>
        /// 文件类型
        /// </summary>
        public virtual string FileType { get; set; }
        /// <summary>
        /// 文件网络地址
        /// </summary>
        public virtual string FileUri { get; set; }
        /// <summary>
        /// 文件物理路径
        /// </summary>
        public virtual string FilePath { get; set; }
        /// <summary>
        /// 文件全路径
        /// </summary>
        public virtual string Path { get; set; }
        /// <summary>
        /// 文件路径
        /// </summary>
        public virtual string FolderPath { get; set; }
        /// <summary>
        /// 文件大小
        /// </summary>
        public virtual double Size { get; set; }
        /// <summary>
        /// 当前文件版本
        /// </summary>
        public virtual int CurrentVersion { get; set; }
        /// <summary>
        /// 启用？
        /// </summary>
        public virtual bool Enable { get; set; }
        /// <summary>
        /// 顺序
        /// </summary>
        public virtual double Sequence { get; set; }
        public virtual bool HaveDelete { get; set; }
    }
}
